package com.oocl.chatroom.servermanage.main;


import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

import com.oocl.chatroom.servermanage.requesthandler.HttpRequestHandler;



public class ManagerStartUp {
	public static void main(String[] args) {
		try {
		ServerSocket server = new ServerSocket(9000);
		while (true) {
				Socket sk = server.accept();
				HttpRequestHandler handler = new HttpRequestHandler();
				handler.setSocket(sk);
				new Thread(handler).start();
		  }

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
    	 
}
